
const getSelector = function(path){
    // console.log(path);
    return path.reverse().filter(ele=>{
        return ele !== window && ele !== document;
    }).map(ele=>{
        let selector = "";
        if(ele?.id){
            selector = `${ele.tagName.toLowerCase()}#${ele.id}`
        }else if (ele.className && typeof ele.className === 'string') {
            selector = `${ele.tagName.toLowerCase()}#${ele.className}`
        }else {
            selector = ele.nodeName.toLowerCase();
        }
        return selector
    }).join(' ')
}




export default function(pathsOrTarget){
    if (Array.isArray(pathsOrTarget)) {
        return getSelector(pathsOrTarget);
    }else{

    }
}